/*
   
   ▒█████ ██   ██  ▄████▄   ██ ▄█▀       ██████╗ ██╗   ██╗ ██████╗
  ▒██   ▒███  ▓██▒▒██▀ ▀█   ██▄█▒        ██╔══██╗██║   ██║██╔════╝
  ▒█████░▓██  ▒██░▒▓█    ▄ ▓███▄░        ██████╔╝██║   ██║██║  ███╗
  ░██▒  ░▓██  ░██░▒▓▓▄ ▄██▒▓██ █▄        ██╔══██╗██║   ██║██║   ██║
  ░██░   ▒▒██████ ▒ ▓███▀ ░▒██▒ █▄       ██████╔╝╚██████╔╝╚██████╔╝
   ▒ ░   ░▒▓▒ ▒ ▒ ░ ░▒ ▒  ░▒ ▒▒ ▓▒       ╚═════╝  ╚═════╝  ╚═════╝
   ░     ░░▒░ ░ ░   ░  ▒   ░ ░▒ ▒░
   ░ ░    ░░░ ░ ░ ░        ░ ░░ ░
            ░     ░ ░      ░  ░

 */
/* =============================================================================== 
	全局样式
   =============================================================================== */

html,
body {
  background: transparent;
  overflow: hidden;
}

*:not(input) {
  -moz-user-select: -moz-none;
  -moz-user-select: none;
  -o-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* 设置全局样式 */
* {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  opacity: 0;
  background-color: transparent;
}

body.fade_in {
  animation: fade_in 0.5s forwards;
}
@keyframes fade_in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }

  to {
    opacity: 100;
    transform: scale(1);
  }
}

/* 标题栏按钮样式 */
.win_control {
  & > .win_btn {
    width: 13px;
    height: 13px;
    background: #fff;
    float: left;
    border-radius: 100%;
    margin-right: 10px;
  }

  /* 最小化按钮 */
  & > .win_btn.min {
    background-color: #27a521;
  }

  & > .win_btn.min:hover {
    background-color: #1ddd12;
  }

  & > .win_btn.min:active {
    background-color: #27a521;
  }

  /* 最大化按钮 */
  & > .win_btn.max {
    background-color: #dfc14f;
  }

  & > .win_btn.max:hover {
    background-color: #ffc729;
  }

  & > .win_btn.max:active {
    background-color: #dfc14f;
  }

  /* 关闭按钮 */
  & > .win_btn.close {
    background-color: #f46360;
  }

  & > .win_btn.close:hover {
    background-color: #ff0303;
  }

  & > .win_btn.close:active {
    background-color: #f46360;
  }
}

/* =============================================================================== 
	index.html样式
   =============================================================================== */

/* 窗口基础样式 */
#main {
  padding: 20px;

  & .win_from {
    background-color: #0c0b14;
    width: 260px;
    height: 470px;
    border: solid 1px rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.45);
  }

  & .win_from p {
    cursor: default;
    user-select: none;
  }

  & > .win_from > .win_title {
    width: 100%;
    height: 24px;
    padding: 0px 12px;
    padding-top: 8px;
    box-sizing: border-box;
  }

  & > .win_from > .win_title > p {
    font-weight: bold;
    color: #fff;
    float: left;
    font-size: 14px;
    width: 100%;
    margin-top: -3px;
  }

  & > .win_from > .win_title .win_drag {
    position: absolute;
    width: 300px;
    height: 32px;
    margin-left: -14px;
    margin-top: -10px;
    z-index: 10;
  }

  & > .win_from > .win_title > .win_control {
    float: right;
    width: 100%;
    z-index: 999;
    position: absolute;
    left: 210px;
    top: 29px;
  }
}

/* 窗口页面样式 */
#main .win_content {
  width: 100%;
  height: 390px;
  overflow: hidden;

  & .page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0px 10px;
    box-sizing: border-box;
  }
}

/* 页面1 - 色盘 */

#main .color_piker {
  width: 100%;
  height: 234px;

  & .piker {
    width: 208px;
    height: 208px;
    border-radius: 100%;
    transform: translate(6px, 18px);
  }

  & .color {
    background-color: #fff;
    border-radius: 100%;
    width: 40px;
    height: 40px;
    position: relative;
    transition: 0s;
  }

  & .color_1 {
    top: -194px;
    left: 188px;
  }

  & .color_2 {
    width: 30px;
    height: 30px;
    top: -192px;
    left: 208px;
  }

  & .color_hex {
    border: none;
    padding: 6px 10px;
    width: 56px;
    font-size: 12px;
    background-color: #000;
    border-radius: 999px;
    text-align: center;
    position: relative;
    top: -70px;
    left: 168px;
    transform: scale(0.98);
  }
}

#main .page_1 .color_card {
  margin-bottom: 20px;

  &:last-child {
    margin-bottom: 0px;
  }

  & p {
    font-size: 12px;
    margin-bottom: 10px;
    transform: translateX(-2px) scale(0.98);
    color: #fff;
  }
}

#main .page_1 .card {
  display: flex;
  margin-bottom: 6px;

  &:last-child {
    margin-bottom: 0px;
  }
}

#main .page_1 .card li {
  background-color: #fff;
  width: 40px;
  height: 20px;
  margin-right: 5px;
  border-radius: 3px;
  transition: 0.3s;
  box-sizing: border-box;

  &:last-child {
    margin-right: 0px;
  }

  &:hover {
    opacity: 0.7;
  }

  &:active {
    transform: translateY(6px);
  }
}

/* 调色页 */
#main .page_2 .color_card {
  & .piker_h {
    margin-top: 28px;
  }

  & p {
    color: #fff;
    font-size: 12px;
    position: relative;
  }

  & .t_1 {
    top: -130px;
  }

  & .t_2 {
    top: -96px;
  }

  & .t_3 {
    top: -68px;
  }
}

/* 潘通色卡页样式 */
#main .page.page_4 {
  padding-top: 10px;

  & .pantone_seach {
    width: 100%;
    height: 32px;
    overflow: hidden;
    border-radius: 4px;
  }

  & .pantone_seach input {
    width: 100%;
    height: 32px;
    font-size: 12px;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0px 10px;
    padding-right: 36px;
    box-sizing: border-box;
  }

  & .pantone_seach button {
    position: relative;
    margin: 0px;
    width: 32px;
    height: 32px;
    top: -32px;
    left: calc(100% - 36px);
    border: none;
    background-color: transparent;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
  }

  & .pantone {
    margin: 10px 2px;
    margin-left: 5px;
    box-sizing: border-box;
    height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  & .pantone.sel {
    overflow: hidden;
    border-radius: 4px;
  }

  & .pantone::-webkit-scrollbar {
    display: none;
  }

  & .pantone .card {
    background-color: blue;
    width: 54px;
    height: 58px;
    float: left;
    margin: 2px;
    border: 0px solid #000000;
    border-radius: 0px;
    transition: 0.28s;
    box-sizing: border-box;
    cursor: default;
    border-radius: 4px;
  }

  & .pantone .card.sel {
    background-color: blue;
    transform: scale(2000%, 2000%);
    border: none;
    border-radius: 50px;
    transition: 0.6s;
  }

  & .pantone2 {
    position: absolute;
    top: 254px;
    left: 40px;
    z-index: 99;
    color: #fff;
  }

  & .pantone2 {
    pointer-events: none;
    opacity: 0;
    transition: 0.3s;
    transform: scale(0.95) translate(0%, -5%);
  }

  & .pantone2.sel {
    pointer-events: initial;
    opacity: 1;
  }

  & .pantone2 h1 {
    font-size: 22px;
  }

  & .pantone2 h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  & .pantone2 p {
    font-size: 10px;
    line-height: 2.2em;
  }

  & .pantone2 p .t {
    display: inline-block;
    width: 48px;
  }

  & .pantone2 p .rgb,
  & .pantone2 p .cmyk,
  & .pantone2 p .hex {
    cursor: pointer;
  }
}

/* 导航栏样式 */
#main .win_nav {
  width: 100%;
  height: 56px;
  overflow: hidden;
}

#main .win_nav ul li {
  width: 20%;
  text-align: center;
  float: left;

  & .icon {
    display: inline-block;
    width: 22px;
    height: 22px;
  }

  & p,
  & path {
    text-align: center;
    fill: #81858c;
    color: #81858c;
    font-size: 12px;
    cursor: default;
    transform: scale(0.95);
    margin-top: 2px;
    transition: 0.3s;
  }

  &:hover path,
  &:hover p {
    fill: #dbdbdc;
    color: #dbdbdc;
  }

  &:active path,
  &:active p {
    fill: #81858c;
    color: #81858c;
  }
}

#main .win_nav ul li.sel {
  & p {
    color: #fff;
  }

  & path {
    fill: #fff;
  }

  &:nth-child(1) path {
    fill: #1d5eff !important;
  }
}

/* 修改Layui右键菜单样式 */
#main .layui-dropdown {
  border-radius: 6px;
  background-color: #0c0b14;

  & .layui-menu .layui-menu-body-title {
    font-size: 12px;
    padding: 2px 14px;
  }

  & .layui-menu .layui-menu-body-panel {
    margin: 0px;
    border-radius: 6px;
  }

  & .layui-menu.layui-dropdown-menu {
    padding: 2px 4px;
    background-color: #0c0b14;
  }

  & li {
    border-radius: 4px;
  }

  & li:hover {
    background-color: #0000ff;
  }
}

#main .layui-layer.layui-layer-dialog {
  &.layui-layer-msg {
    border-radius: 4px;
  }

  &.layui-layer-msg .layui-layer-content {
    font-size: 12px;
  }
}

#main .layui-menu-body-panel {
  border-radius: 6px;
}

/* =============================================================================== 
	set.html样式
   =============================================================================== */

/* 窗口基础样式 - 常规窗口 */
#set {
  padding: 20px;

  & > .win_from {
    background-color: #0c0b14;
    width: calc(100vw - 40px);
    height: calc(100vh - 40px);
    border: solid 1px rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    box-sizing: border-box;
  }

  & > .win_from .win_title {
    width: 100%;
    height: 24px;
    padding: 0px 12px;
    padding-top: 8px;
    box-sizing: border-box;
  }

  & > .win_from .win_title > .win_drag {
    top: 20px;
    left: 20px;
    width: calc(100% - 40px);
    height: 30px;
    position: absolute;
  }

  & > .win_from .win_title p {
    font-weight: bold;
    color: #fff;
    float: left;
    font-size: 13px;
    width: 100%;
  }

  & > .win_from .win_control {
    float: right;
    width: 100%;
    z-index: 999;
    position: absolute;
    left: calc(100% - 90px);
    top: 29px;
  }

  & > .win_from > .body {
    height: calc(100vh - 80px);
    padding: 12px;
  }
}

/* 窗口基础样式 - 最大化窗口 */
#set.win_max {
  padding: 0px;

  & > .win_from {
    width: 100vw;
    height: 100vh;
    border-radius: 0px;
  }

  & > .win_from > .win_title > .win_control {
    left: calc(100% - 76px);
    top: 10px;
  }

  & > .win_from > .win_title > .win_drag {
    width: 100vw;
    left: 0px;
    top: 0px;
  }

  & > .win_from > .body {
    height: calc(100vh - 40px);
  }
}

/* 左侧导航栏样式 */
#set .win_from > .body > .left {
  width: 120px;
  background-color: transparent;
  border: none;
  float: left;

  & > .layui-menu {
    background-color: transparent;
  }

  & > .layui-menu > li {
    line-height: 1.6em;
    font-size: 13px;
    color: #fff;
    border-radius: 4px;
    margin: 8px 0px;
  }

  & > .layui-menu > li::after {
    display: none;
  }

  & > .layui-menu > li a {
    color: #fff;
  }

  & > .layui-menu > li a:hover {
    color: #fff;
  }

  & > .layui-menu .layui-menu-item-checked,
  & > .layui-menu .layui-menu-item-checked2 {
    background-color: blue !important;
  }
}

/* 右侧面板 样式 */

#set .win_from > .body > .right {
  width: calc(100% - 140px);
  height: 100%;
  overflow-y: scroll;
  float: right;

  &::-webkit-scrollbar {
    width: 0px;
    height: 0px;
  }

  & > .scroll .layui-form-item {
    margin: 6px 0px;
    background-color: rgba(255, 255, 255, 0.07);
    border: none;
    border-radius: 4px;
  }

  & > .scroll .layui-form-label {
    width: auto;
    text-align: left;
  }

  & > .scroll > form > h1 {
    font-size: 13px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 14px;
  }

  & > .scroll .layui-form-label > h3 {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
  }

  & > .scroll .layui-form-label > p {
    font-size: 12px;
    display: inline;
  }

  & > .scroll .layui-form-item {
    padding: 4px 0px;
  }

  /* 选择框样式 */
  & .select {
    position: absolute;
    width: 150px;
    right: 4px;
    transform: translateY(10px);
    margin-right: 10px;
    z-index: 2;
  }

  & .select > .layui-unselect dl {
    background-color: #0c0b14;
    position: absolute;
    border-radius: 6px;
    padding: 6px;
    border: solid 1px rgba(255, 255, 255, 0.15);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
    padding-top: 4px;
  }

  & .select > .layui-unselect dd {
    background-color: #0c0b14;
    line-height: 2.6em;
    margin: 6px 0px;
    border-radius: 4px;
    font-size: 12px;
    transition: 0.4s;
    padding: 0px 10px;
  }

  & .select > .layui-unselect dd:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  & .select > .layui-unselect dd.layui-this {
    background-color: #0000ff;
    color: #fff;
  }

  & .select .layui-input,
  & .select .layui-input:focus,
  & .select .layui-textarea:focus {
    box-shadow: none;
    user-select: none;
    font-size: 12px;
    padding: 0px 10px;
    border-radius: 4px;
    height: 36px;
  }

  & .select .layui-input:focus {
    background-color: #0c0b14;
    color: #fff;
    border-color: #0000ff !important;
    z-index: 999;
  }

  /* 开关样式 */
  & > .scroll .layui-input-block {
    transform: translateY(10px);
    margin-right: 10px;
    float: right;
  }

  & .layui-form-switch {
    border: none;
    width: 50px;
    transform: scale(0.85);
    margin-left: -2px;
  }

  & .layui-form-onswitch.layui-form-switch {
    background-color: #0000ff;
  }

  & .layui-form > .about {
    padding: 20px;
    font-size: 12px;
  }

  & .layui-form > .about h4 {
    color: rgba(255, 255, 255, 0.9);
  }

  & .layui-form > .about span {
    margin-top: -6px;
    display: inline-block;
    line-height: 1.8em;
  }

  & .layui-form > .about span > img {
    border-radius: 4px;
    width: 100%;
    margin: 10px 0px;
  }

  & .layui-form > .about span .link {
    margin-right: 20px;
    color: #fff;
    cursor: pointer;
  }
}

/* 弹出层样式 */
#set > .layui-layer-shade {
  width: calc(100vw - 40px);
  height: calc(100vh - 40px);
  margin: 20px;
  border-radius: 6px;
  opacity: 1 !important;
  background-color: rgba(0, 0, 0, 0.4) !important;
  backdrop-filter: blur(10px);
}

#set > .layui-layer-page > .layui-layer-content {
  overflow: hidden;
  border: solid 1px rgba(255, 255, 255, 0.15);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  background-color: #0c0b14;
}

#set > .layui-layer-page > .layui-layer-content > .msg_box {
  text-align: center;
  padding: 50px;

  & img {
    width: 100%;
    border-radius: 6px;
  }

  & .title {
    text-align: center;
    margin-top: 30px;
  }
}

/* 方形色盘 */
.piker_box > .piker {
  margin-top: -5px;
  width: 226px !important;
  height: 226px !important;
}

.piker_box > .color_1,
.piker_box > .color_2,
.piker_box .color_hex {
  display: none !important;
}

.page_1 .piker_box ~ .color_card {
  margin-top: 16px;
}

.page_1 .piker_box ~ #Collect {
  margin-top: -6px;
}

.page_2 .piker_box ~ .color_card {
  position: relative;
  bottom: -12px;
}
